import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)


const store = new Vuex.Store({
  state: {
    isMobile: false
  },
  mutations: {
    change(state, width) {
      state.isMobile = width <= 750
    }
  },
  getters: {
    isMobile(state) {
      return state.isMobile
    }

  }
})

export default store
